package com.ruoyi.key.mapper;

import java.util.List;

import com.ruoyi.key.domain.KeyStudent;
import com.ruoyi.key.domain.TbKeyallocation;

/**
 * 线索分配Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-25
 */
public interface TbKeyallocationMapper 
{
    /**
     * 查询线索分配
     * 
     * @param allocationId 线索分配主键
     * @return 线索分配
     */
    public TbKeyallocation selectTbKeyallocationByAllocationId(Long allocationId);

    /**
     * 查询线索分配列表
     * 
     * @param tbKeyallocation 线索分配
     * @return 线索分配集合
     */
    public List<TbKeyallocation> selectTbKeyallocationList(TbKeyallocation tbKeyallocation);

    /**
     * 新增线索分配
     * 
     * @param tbKeyallocation 线索分配
     * @return 结果
     */
    public int insertTbKeyallocation(TbKeyallocation tbKeyallocation);

    /**
     * 修改线索分配
     * 
     * @param tbKeyallocation 线索分配
     * @return 结果
     */
    public int updateTbKeyallocation(TbKeyallocation tbKeyallocation);

    /**
     * 删除线索分配
     * 
     * @param allocationId 线索分配主键
     * @return 结果
     */
    public int deleteTbKeyallocationByAllocationId(Long allocationId);

    /**
     * 批量删除线索分配
     * 
     * @param allocationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbKeyallocationByAllocationIds(Long[] allocationIds);
//连表查询
    List<KeyStudent> selectKeyStudentList(KeyStudent tbKeyallocation);
}
